package com.yunkeji.dao.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.yunkeji.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 通话话单对象 ykj_call_audit_info
 *
 * @author 老张
 * @date 2024-05-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ykj_call_voice_check", autoResultMap = true)
public class CallVoiceCheck extends BaseEntity {

    private static final long serialVersionUID = 1L;
    /** */
    @TableId(value = "id")
    private Long id;
    /** 通话唯一标识 */
    private String ucid;

    /** 1=未处理 2=忽略 3=违规 */
    private Integer status;

    /** 主叫爱洞id */
    private Long callPlatformId;
    /** 被叫爱洞id */
    private Long answerPlatformId;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<Details> keyWord;

    /**
     * 语音连接
     *
     * @author 老张
     */
    private String voiceUrl;
    /**
     * 语音连接-文本
     *
     * @author 老张
     */
    private String voiceText;

    private String remark;

    @Data
    public static class Details {
        private String resultText;
        private double score;
        private String label;
    }
}
